﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<%@ Import Namespace="CourseSystem.Core.BLL" %>
<%@ Import Namespace="CourseSystem.Core.Enum" %>
<% if (UserHelper.LoginUser == null) return; %>
<tr>
    <td height="168" valign="top" background="<%=ResolveUrl("~/"+CourseSettingBLL.Get().LoginedImgTop) %>">
        <table width="100%" height="27" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20%">
                    &nbsp;
                </td>
                <td width="20%">
                    &nbsp;
                </td>
                <td width="20%">
                    &nbsp;
                </td>
                <td width="38%">
                    <% if ((UserHelper.LoginUser.UserType == UserTypeEnum.Teacher || UserHelper.LoginUser.UserType == UserTypeEnum.Admin)&&!UserHelper.LoginUser.IsExpert)
                       {%>
                    <div align="right">
                        <a href="<%= Url.Action("Index", "Admin") %>">
                            <img src="<%= ResolveUrl("~/Content/images/q1.gif") %>" width="59" height="19" border="0"></a>
                    </div>
                    <% } %>
                    <div align="right">
                        <a class="bold12" href="<%= Url.Action("LogOut", "Account") %>">退出</a>
                    </div>
                </td>
                <td width="2%">
                    &nbsp;
                </td>
            </tr>
        </table>
    </td>
</tr>
